package com.xjj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sjy
 * @create 2022-10-19 18:55
 * 班级实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xjj_klass")
public class Klass {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 班级名称：某某学校某某年纪某某班
     */
    @TableField("name")
    private String name;
    /**
     * 学校id
     */
    @TableField("school_id")
    private Integer schoolId;
    /**
     * 班主任id
     */
    @TableField("master_id")
    private Integer masterId;
    /**
     * 班级验证码
     */
    @TableField("klass_verify")
    private String klassVerify;
    /**
     * 班级人数
     */
    @TableField("klass_num")
    private Integer klassNum;
    /**
     * 该班一共发布的作业数量
     */
    @TableField("job_num")
    private Integer jobNum;

    @TableField(exist = false )
    private School school;
}
